<%@page import="service.AdminService"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>删除</title>
</head>
<body>
<%
int id=Integer.parseInt(request.getParameter("id"));
AdminService as =new AdminService();
int res=as.delete(id);
if(res>0)
	response.sendRedirect("do_query.jsp");
else
	out.print("删除失败");


%>
</body>
</html>